package org.dey.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dey.entity.Result;
import org.dey.pojo.PageVo;
import org.dey.pojo.Role;

import java.util.List;

/**
 * @author deyran
 * @date 2022/3/15 8:44
 * @classname
 * @see
 */
public interface RoleService extends IService<Role> {

    //查
    public PageVo<Role> queryrole(Role role, int pageno, int pagesize);

    //增
    public Result insertrole(Role role);

    //删
    public Result delrole(int id);

    //修改前先根据id查到该数据
    public Role queryrolebyid(int id);

    //根据id修改
    public Result updaterolebyid(Role role);

    //查询所有角色
    public List<Role> roleAll();
}
